package com.yonyou.cyxdms.sysAuth.service.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yonyou.cyx.framework.dao.base.SuperMapper;
import com.yonyou.cyxdms.sysAuth.service.entity.CarFactoryBasicinfoPO;
import com.yonyou.cyxdms.sysAuth.service.vo.carfaccompanymaintenance.DealerBasicinfoVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 车厂公司基本信息 Mapper 接口
 * </p>
 *
 * @author quankk
 * @since 2019-07-05
 */
public interface CarFactoryBasicinfoMapper extends SuperMapper<CarFactoryBasicinfoPO> {
    /**
     * 车厂公司维护控制类  DealerBasicinfoVO
     *
     * @author dengqiang
     * @since 2019/7/18
     */
    List<DealerBasicinfoVO> pageDealerBasicinfo(Page<DealerBasicinfoVO> page, @Param("params")Map<String,Object> queryCondition);

    List<Map<String,Object>> checkCodeOrName(@Param("companyCode")String companyCode,  @Param("dealerName")String dealerName);
    /**
     * 查询当前公司是否有下级
     *
     * @author dengqiang
     * @since 2019/7/22
     */
    List<Map<String,Object>> isInferior(@Param("ids")String ids);
    /**
     * 判断名称是否重复
     *
     * @author dengqiang
     * @since 2019/7/22
     */
    List<Map<String,Object>> isRepeatName(@Param("dealerName")String dealerName);
    /**
     * 获取当前公司的组织id
     *
     * @author dengqiang
     * @since 2019/7/22
     */
    List<Map<String,Object>> findOrganizationId(@Param("ids")String ids);

    List<Map<String,Object>> findByModelCode(@Param("modelCode")String modelCode,@Param("productId") Integer productId);
}
